package com.wenjoying.common.api;

public class BaseException extends RuntimeException {

    private String message;
    private StackTraceElement[] stackTrace;

    /**
     *
     * @param e
     */
    public BaseException(Exception e){
        super();
        this.message = e.getMessage();
        this.stackTrace = e.getStackTrace();
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public StackTraceElement[] getStackTrace() {
        return stackTrace;
    }

    @Override
    public void setStackTrace(StackTraceElement[] stackTrace) {
        this.stackTrace = stackTrace;
    }

}
